 public class computeAverage
{
    public static void main(String ... args)
    {
        double average;
        int sum = 0;

        if (args.length != 0) {
            for (int index = 1; index < args.length; index++) {
                sum += Integer.parseInt(args[index]);
            }
            average = (double) sum / (args.length - 1);
            System.out.println("学号" + args[0] + "平均分" + average);
        }
        else
            System.out.println("Wrong!");

    }
}

